<template>
	<div>
		<category-search />
		<category-sidebar :categoryList="categoryList" />
	</div>
</template>

<script>

import axios from 'axios'
import CategorySearch from '../components/CategorySearch.vue';
import CategorySidebar from '../components/CategorySidebar.vue';
export default {
  components: { CategorySearch, CategorySidebar },
	data(){
		return {
			categoryList:[]
		}
	},
	created(){
		axios.get('/api/catalog/index').then((res=>{
			console.log(res);
			this.categoryList=res.data.data.categoryList
		}))
	},
	
	
}
</script>
<style scoped>


</style>